<?php
	require_once "race_homepage.inc";
		
	print(head());
	
	$db = mysql_connect($GLOBALS["dbhost"],$GLOBALS["dbname"],$GLOBALS["dbpasswd"]);
if(!$db){
	return "Error-Can't link to mysql";
}

$newsdb = mysql_select_db("capu");
if(!$newsdb){
	return "Error-Can't link to db race";
}

$query = "select * from race_static";
//print $query;
$result = mysql_query($query);

if( !$result){
	$text.="Error - query wrong";
	$error = mysql_error();
	$text.=("<p>".$error."</p>");
	print $text;
	exit;
}

$row = mysql_fetch_array($result);
print "<p>".$row["aboutus"]."</p>";

	print(foot());
	
?>
